home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01a.txt / 000056_icon-group-sender _Mon Jun 12 08:48:29 2000.msg < prev    next >
Internet Message Format  |  2002-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA19816
  4.     for icon-group-addresses; Mon, 12 Jun 2000 08:47:55 -0700 (MST)
  5. Message-Id: <200006121547.IAA19816@baskerville.CS.Arizona.EDU>
  6. From: espie@liafa.jussieu.fr (Marc Espie)
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Re: User defined operators for Icon
  9. Date: 6 Jun 2000 17:04:00 GMT
  10. X-Trace: vishnu.jussieu.fr 960311040 3784 132.227.81.128 (6 Jun 2000 17:04:00 GMT)
  11. X-Complaints-To: Newsmaster@jussieu.fr.
  12. X-Newsreader: trn 4.0-test70 (17 January 1999)
  13. To: icon-group@optima.CS.Arizona.EDU
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16. Content-Length: 882
  17.  
  18. In article <e38%4.29$tx4.556@client>,
  19. Frank J. Lhota <NOSPAM.Frank.Lhota@lexma.meitech.com> wrote:
  20. >1.    You cannot (re)define the primitive operators, such as "*", "++", or
  21. >"<", for a record type;
  22. >2.    You cannot define implicit /explicit type conversions between a record
  23. >type and the existing types; and
  24. >3.    You cannot define the behavior of functions such as image and write
  25. >for the new record type.
  26.  
  27. >Languages such as C++ and Ada permit the programmer to define the behavior
  28. >of operators and predefined functions for user defined types. Would it be
  29. >desirable to add such a capacity to Icon? If so, what would this facility
  30. >look like?
  31.  
  32. idol, or an extension of idol, most certainly.
  33.  
  34. -- 
  35.     Marc Espie        
  36. |anime, sf, juggling, unicycle, acrobatics, comics...
  37. |AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
  38. | `real programmers don't die, they just get out of beta'
  39.